package com.hust.bridgecheck.repository;

import com.hust.bridgecheck.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface UserRepository extends JpaRepository<User,Integer> {
    //用户操作类
    @Query(nativeQuery = true, value = "select * from user where user_account = ?1")
    User findUserByUserAccount(String UserAccount);

}
